home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / comms / netsoftware / archie38_1.lha / archie-1.4 / SMakefile < prev    next >
Makefile  |  1995-01-05  |  7KB  |  166 lines

  1. # SAS/C-style (S)makefile
  2. # Tomas Willis
  3. # mods for Amiga
  4. # I built this with SAS/C 6.51 and the AmiTCP 2.2 developer kit
  5. # Amiga port by Tomas Willis (tomas@cae.wisc.edu) January 1995
  6. #
  7. # Makefile for the minimal build for an archie Prospero client.
  8. #
  9. # Your C compiler:  SAS/C 6.51
  10. CC=sc
  11.  
  12. # For most systems, these OPTIONS will suffice.  Exceptions:
  13. #
  14. #    * If you're on a Stardent, add  -43
  15. #    * If you're running EP/IX, you may need to add  -systype bsd43
  16. #      but try it without it first.
  17. #OPTIONS= -O -I. -I/usr/netinclude -I/usr/ucbinclude
  18. OPTIONS=OPT IDIR=""
  19. # For this, DEFINES is usually ok as-is.  Try it without any of these
  20. # first; if some stuff fails or shows up undefined, then come back and
  21. # add 'em.  Also please drop me a line if you had to add anything...ideally
  22. # things will reach a point where this whole section will be unnecessary.
  23. #
  24. #     * if you want to include the debugging code (so you
  25. #       can help with problem-solving if any crop up), add    -DDEBUG
  26. #     * if you're running Interactive Unix, add              -DISC
  27. #     * if you're running System V, add                  -DSYSV
  28. #     * if you're running a USG (System V.2) system, add      -DUSG
  29. #     * if you're running UTS, add                  -DUTS
  30. #     * if your system doesn't have the functions index(),
  31. #       rindex(), bcopy(), or bzero(), add                    -DFUNCS
  32. #     * if your system is missing the getenv(3) routine, add  -DGETENV
  33. #     * if your system doesn't have the re_comp/regcmp or re_exec/regex
  34. #       routines (no regex(3)/regcmp(3X) library), then add   -DNOREGEX
  35. #     * if your system is lacking strspn(), add               -DSTRSPN
  36. DEFINES= DEF=DEBUG DEF=AMIGA DEF=NEED_STRING_H DEF=NEED_TIME_H \
  37.          DEF=WANT_BOTH_TIME DEF=NOREGEX
  38.  
  39. # The default Archie server; choose one of:
  40. #    archie.au                   139.130.4.6     Australia
  41. #    archie.edvz.uni-linz.ac.at  140.78.3.8      Austria
  42. #    archie.univie.ac.at         131.130.1.23    Austria
  43. #    archie.cs.mcgill.ca         132.206.51.250  Canada
  44. #    archie.uqam.ca              132.208.250.10  Canada
  45. #    archie.funet.fi             128.214.6.102   Finland
  46. #    archie.univ-rennes1.fr      129.20.128.38   France
  47. #    archie.th-darmstadt.de      130.83.128.118  Germany
  48. #    archie.ac.il                132.65.16.18    Israel
  49. #    archie.unipi.it             131.114.21.10   Italy
  50. #    archie.wide.ad.jp           133.4.3.6       Japan
  51. #    archie.hana.nm.kr           128.134.1.1     Korea
  52. #    archie.sogang.ac.kr         163.239.1.11    Korea
  53. #    archie.uninett.no           128.39.2.20     Norway
  54. #    archie.rediris.es           130.206.1.2     Spain
  55. #    archie.luth.se              130.240.12.30   Sweden
  56. #    archie.switch.ch            130.59.1.40     Switzerland
  57. #    archie.nctuccca.edu.tw      192.83.166.10   Taiwan
  58. #    archie.ncu.edu.tw           192.83.166.12   Taiwan
  59. #    archie.doc.ic.ac.uk         146.169.11.3    United Kingdom
  60. #    archie.hensa.ac.uk          129.12.21.25    United Kingdom
  61. #    archie.unl.edu              129.93.1.14     USA (NE)
  62. #    archie.internic.net         198.49.45.10    USA (NJ)
  63. #    archie.rutgers.edu          128.6.18.15     USA (NJ)
  64. #    archie.ans.net              147.225.1.10    USA (NY)
  65. #    archie.sura.net             128.167.254.179 USA (MD)
  66. #
  67. # Note this only applies to the command-line client; to change the
  68. # default for the Emacs lisp version, set the archie-server variable.
  69. ARCHIE= archie.internic.net
  70.  
  71. #    Usually LDFLAGS is empty; if, after you build this, archie
  72. #     complains that it can't resolve ARCHIE.ANS.NET (or whatever
  73. #     you defined ARCHIE_HOST as), you need to add `-lresolv'.
  74. #
  75. #    * If you need the PW library (e.g. A/UX), add -lPW
  76. LDFLAGS=lib=lib:net.lib
  77. # If you're using ISC, use:
  78. #LDFLAGS= -linet
  79. # If you're using Wallongong TCP/IP on an AT&T box, use:
  80. #LDFLAGS= -lnet -lnsl_s
  81. # If you're using UTS, use:
  82. #LDFLAGS= -lsocket
  83. # If you're using System V Release 4, use:
  84. #LDFLAGS= -L/usr/ucblib -lucb -lsockdns -lnsl
  85. # If you're using Solaris 2.0, use:
  86. #LDFLAGS= -lnsl -lsocket -L/usr/ucblib -lucb
  87. # If you're using Consensus SVR4, use:
  88. #LDFLAGS= -lnsl_i -lsocket -lucb
  89. # If you're using Dynix/PTX, use:
  90. #LDFLAGS= -lsocket -linet -lnsl -lPW
  91.  
  92. # Change this if necessary.
  93. RM=delete
  94.  
  95. # =========================
  96. # Yer' done....make archie.
  97. # =========================
  98. #
  99. CFLAGS=$(OPTIONS) $(DEFINES) DEF=ARCHIE_HOST="$(ARCHIE)"
  100.  
  101. VERSION=1.4
  102. VMS_VERSION=`echo $(VERSION) | sed -e 's,\\.,_,g'`
  103.  
  104. OBJS= archie.o aquery.o atalloc.o dirsend.o get_pauth.o get_vdir.o \
  105.     perrmesg.o procquery.o ptalloc.o regex.o stcopy.o support.o \
  106.     vlalloc.o vl_comp.o amiga/getpid.o amiga/getuid.o
  107.  
  108. GETOPTOBJS =     getopt.o getopt1.o
  109. #getopts () provided in the AmiTCP socket stuff
  110.  
  111. SRCS=aquery.c archie.c atalloc.c dirsend.c get_pauth.c get_vdir.c \
  112.     getopt.c getopt1.c \
  113.     perrmesg.c procquery.c ptalloc.c regex.c stcopy.c support.c \
  114.     vlalloc.c vl_comp.c amiga/getpid.c amiga/getuid.c
  115.  
  116. all: archie
  117.  
  118. archie: $(OBJS)
  119.     SLINK FROM lib:c.o $(OBJS) \
  120.     to archie \
  121.     LIB lib:net.lib lib:sc.lib LIB:amiga.lib\
  122.     VERBOSE
  123. #    $(CC) $(CFLAGS) $@ LINK $(OBJS) $(LDFLAGS)
  124. #    $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
  125.  
  126. .c.o: archie.h copyright.h pmachine.h pcompat.h Makefile $(SRCS)
  127.     $(CC) $(CFLAGS) $<
  128.  
  129. clean:
  130.     $(RM) #?.o archie archie.doc
  131.  
  132. FILES=    INSTALL Makefile Prospero README README.ALEX README.dos archie.c \
  133.     archie.h archie.el archie.lnk archie.doc archie.man aquery.c \
  134.     atalloc.c dirsend.c get_pauth.c get_vdir.c \
  135.     getopt.c getopt.h getopt1.c \
  136.     make.com makefile.cut makefile.dos makefile.os2 makefile.nfs \
  137.     msdos/cutcp.h msdos/hostform.h msdos/netevent.h pc-archie.nfs \
  138.     perrmesg.c patchlevel.h pauthent.h pcompat.h perrno.h pfs.h pmachine.h \
  139.     pprot.h procquery.c ptalloc.c rdgram.h regex.c regex.h stcopy.c \
  140.     support.c copyright.h vl_comp.c vlalloc.c vms.h vms_support.c \
  141.     vms/fd.h vms/in.h vms/pseudos.h vms/signal.h vms/socket.h vms/time.h \
  142.     vms/types.h vms/network.h vms/multi.opt vms/ucx.opt vms/woll.opt\
  143.     amiga/getuid.c amiga/getpid.c
  144.  
  145. #archie.doc: archie.man
  146. #    nroff -man archie.man | tr '\010' _ | sed -e s/__//g > archie.doc
  147.  
  148. #dcl: archie.doc
  149. #    if [ ! -d archie$(VMS_VERSION)/ ]; then ln -s . archie$(VMS_VERSION); fi
  150. #    echo '$$ write sys$$output "Unpacking..."' > archie$(VMS_VERSION).com
  151. #    echo '$$ if f$$search("archie.dir") .eqs. "" then create/dir [.ARCHIE]' >> archie$(VMS_VERSION).com
  152. #    echo '$$ if f$$search("[.ARCHIE]vms.dir") .eqs. "" then create/dir [.ARCHIE.VMS]' >> archie$(VMS_VERSION).com
  153. #    echo '$$ if f$$search("[.ARCHIE]msdos.dir") .eqs. "" then create/dir [.ARCHIE.MSDOS]' >> archie$(VMS_VERSION).com
  154. #    echo '$$ set noverify' >> archie$(VMS_VERSION).com
  155. #    dclshar `echo "$(FILES)" | tr ' ' '\012' | \
  156. #        sed -e "s/^/archie\//g"` >> archie$(VMS_VERSION).com
  157. #    echo '$$ write sys$$output "Ok, now enter the ARCHIE directory, look at MAKE.COM, then type @MAKE ."' >> archie$(VMS_VERSION).com
  158.  
  159. #tar: archie.doc
  160. #    if [ ! -d archie-$(VERSION)/ ]; then ln -s . archie-$(VERSION); fi
  161. #    tar cvf archie-$(VERSION).tar `echo $(FILES) |\
  162. #     tr ' ' '\012' | sed -e "s/^/archie-$(VERSION)\//g"`
  163. #    compress -f archie-$(VERSION).tar
  164.  
  165.  
  166.